package de.schlinke_marius.adapters;

import java.util.List;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.util.Log;
import android.view.View;

public class AppPagerAdapter extends FragmentPagerAdapter {
	private static final String TAG = FragmentPagerAdapter.class.getSimpleName();
	private final List<Fragment> appFraments;

	public AppPagerAdapter(FragmentManager fragmentManager, List<Fragment> fragments) {

		super(fragmentManager);
		this.appFraments = fragments;

	}

	@Override
	public Fragment getItem(int position) {

		return appFraments.get(position);
	}

	@Override
	public int getCount() {
		return appFraments.size();
	}
	@Override
	public void destroyItem(View container, int position, Object object) {
		
		Log.i(TAG, "destroyItem");
	}

	public List<Fragment> getFragments() {
		return appFraments;
	}
}



